fix: restore short git SHA in version banner#47
Conversation
The vergen 8 -> vergen-gitcl 10 migration (build: upgrade vergen 8 -> vergen-gitcl 10) switched from EmitBuilder::git_sha(true) (short SHA) to Gitcl::all_git(), which defaults to the full 40-char SHA. The version banner (bbl_parser 1.0.1 <sha> (<date>)) now prints the full hash instead of the short one used since 1.0.0. Use Gitcl::all().sha(true).build() to restore short-SHA output while keeping all other VERGEN_GIT_* instructions enabled. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 32 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
AI Generated pull-request
Summary
vergen8 ->vergen-gitcl10 migration (build: cargo update and vergen 8 -> vergen-gitcl 10 #44) switchedbuild.rsfromEmitBuilder::git_sha(true)(short SHA) toGitcl::all_git(), which emits the full 40-charVERGEN_GIT_SHAinstead.bbl_parser --versionnow prints the full SHA (bbl_parser 1.0.1 76b67b5d7a48cb79125ab18be6864c77f44bbb9d (2026-07-02)) instead of the short one used since 1.0.0 (bbl_parser 1.0.0 03b87d3 (2025-12-30)).Gitcl::all().sha(true).build()keeps all otherVERGEN_GIT_*instructions enabled while restoring short-SHA output (Gitcl::builder().all()is a private crate-internal method, soGitcl::all()is the public equivalent).Test plan
cargo build --releaseandcargo test --releasepass (19 unit/integration tests + 3 doc-tests)bbl_parser --versionnow prints a 7-char short SHA (e.g.61448ef)